import { Operation } from "./operations";

// 设置选区
export class SetSelectionOperation extends Operation {
  private selection_: any;
  constructor(selection: any) { 
    super()
    this.selection_ = selection
  }
  /**
   * @description 设置选择区域
   * @param _editor editor 类
   */
  apply(_editor: any): void {
      _editor.getSelectionModel().setSelection(this.selection_)
  }
}

export default SetSelectionOperation